package com.example.shopping_mall.fragment;

import android.content.Intent;
import android.os.Bundle;

import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import com.example.shopping_mall.CustomerActivity;
import com.example.shopping_mall.R;

public class ShoppingMall_Message_Fragment extends AllFragment {

    private LinearLayout service,activity,information,system;

    @Override
    protected void initView() {
        service = findViewById(R.id.service);
        activity = findViewById(R.id.activity);
        information = findViewById(R.id.information);
        system = findViewById(R.id.system);

        //在线客服
        service.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(getActivity(), CustomerActivity.class);
                startActivity(intent);
            }
        });

        //活动信息
        activity.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

            }
        });
    }

    @Override
    protected int getLayoutId() {
        return R.layout.fragment_shopping_mall__message_;
    }

}